<?php
/**
 * Created by PhpStorm.
 * User: rocky
 * Date: 2019-07-14
 * Time: 01:24
 */

namespace app\shop\resource;

use app\common\model\ArticleCollect;
use app\common\resource\BaseResource;

class CartResoure extends BaseResource
{
    public function toArray($data)
    {
        return [
            'id' => $data['id'],
            'num' => $data['num'],
            'store_id' => $data['store_id'],
            'good_id' => $data['good_id'],
            'title' => $data['goods']['title'],
            'logo' => $data['goods']['logo'],
            'price' => $data['goods']['price'],
            'vip_price' => $data['goods']['vip_price']
        ];
    }

}